import sys

if __name__ == '__main__':
    print '__name__ is', __name__, 'run internally'

    print 'cmd args are:'
    for i in sys.argv:
        print '\t', i
    
    j = 0
    for i in sys.path:
        print 'path[%d] = %s' % (j, i)
        j+=1
else:
    print '__name__ is', __name__, 'run externally'

def hi():
    print 'hi'

version = '1.0'
